package cn.qihua.service;

import java.util.List;

import cn.qihua.dao.IBaseOrderDAO;
import cn.qihua.model.BaseOrder;

public interface IOrderService {

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.baidu.service.impl.IBaseOrderService#findById(java.lang.Integer)
	 */
	public abstract BaseOrder findById(Integer id);

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.baidu.service.impl.IBaseOrderService#findAll()
	 */
	public abstract List<BaseOrder> findAll();

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.baidu.service.impl.IBaseOrderService#getTotal()
	 */
	public abstract Integer getTotal();

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.baidu.service.impl.IBaseOrderService#findAll(int, int)
	 */
	public abstract List<BaseOrder> findAll(int start, int limit);

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.baidu.service.impl.IBaseOrderService#add(cn.baidu.model.BaseOrder)
	 */
	public abstract Boolean add(BaseOrder transientInstance);

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.baidu.service.impl.IBaseOrderService#del(java.lang.Integer)
	 */
	public abstract boolean del(Integer id);

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.baidu.service.impl.IBaseOrderService#edit(cn.baidu.model.BaseOrder)
	 */
	public abstract boolean edit(BaseOrder transientInstance);

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.baidu.service.impl.IBaseOrderService#findByFuzzy(java.lang.String)
	 */
	public abstract List<BaseOrder> findByProperty(String propertyName,
			Object value);

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.baidu.service.impl.IBaseOrderService#findByFuzzy(java.lang.String)
	 */
	public abstract List<BaseOrder> findByStatus(String status, int start,
			int limit);

	public abstract List<BaseOrder> findByStatus(String status);

	public abstract Integer getTotalByProperty(String propertyName, Object value);

	public abstract boolean changeStatus(int id, String status);
	
	public abstract void setBaseOrderDAO(IBaseOrderDAO baseOrderDAO);

}